﻿using System.Configuration;
using System.Data.SqlClient;

namespace BO
{
    /// <summary>
    /// Summary description for DBConnectionBO
    /// </summary>
    public class DBConnectionBO
    {
        public static SqlConnection connection = new SqlConnection(ConfigurationManager.ConnectionStrings["defaultConnection"].ConnectionString);

        public DBConnectionBO()
        {
            connection.Open();
        }

        public void CloseConnection()
        {
            connection.Close();
        }
    }
}